/** @file GOTHtimer.h 
 *
 * Under construxion :-)
 *
 * @author Geoffrey Ottoy - Tom Hamelinckx
 * @date 01/07/2011 (last modified)
 *
 * <pre>
 * MODIFICATION HISTORY:
 *
 * Who  Date     Changes
 * ---- -------- ---------------------------------------------------------
 * GO   04/07/11 Created this file.
 * </pre>
 * 
 */

#ifndef __GOTH_TIMER_H__
#define __GOTH_TIMER_H__

#include <p24fj256gb110.h>
#include "GOTHglobal.h"

#define Timer_StartTimer16() {T2CONbits.TON = 1;}
#define Timer_StopTimer16() {T2CONbits.TON = 0;}

void Timer_InitTimer16(unsigned char prescaler, unsigned int compare);
int Timer_Timer16Overflow();

#define Timer_StartTimer32() {T4CONbits.TON = 1;}
#define Timer_StopTimer32() {T4CONbits.TON = 0;}

void Timer_InitTimer32(unsigned char prescaler, unsigned int MSB, unsigned int LSB);
int Timer_Timer32Overflow();
 
#endif // __GOTH_TIMER_H__
